From: Florian Müllner Date: Thu, 8 Jul 2021 18:42:55 +0000 (+0200) Subject: overviewControls: Fix warning on shutdown X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~574^2^2~222 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=dc1aec5673183998128a1ce6251a39d16b0c8194;p=gnome-shell.git overviewControls: Fix warning on shutdown ClutterActor unsets its layout manager's :container property during dispose, so the corresponding vfunc should handle being passed NULL. Part-of: --- diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 88726573d..c15316169 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -112,7 +112,8 @@ class ControlsManagerLayout extends Clutter.BoxLayout { vfunc_set_container(container) { this._container = container; - this.hookup_style(container); + if (container) + this.hookup_style(container); } vfunc_get_preferred_width(_container, _forHeight) {